package csc.fresher.entity;

import java.sql.Timestamp;

public class SavingTransaction extends Transaction {
	private SavingInterestRate savingInterestRate;
	public SavingInterestRate getSavingInterestRate() {
		return savingInterestRate;
	}

	public void setSavingInterestRate(SavingInterestRate savingInterestRate) {
		this.savingInterestRate = savingInterestRate;
	}

	private SavingTransactionType savingTransactionType;

	public SavingTransactionType getSavingTransactionType() {
		return savingTransactionType;
	}

	public void setSavingTransactionType(
			SavingTransactionType savingTransactionType) {
		this.savingTransactionType = savingTransactionType;
	}

	public SavingTransaction(SavingTransactionType savingTransactionType) {
		super();
		this.savingTransactionType = savingTransactionType;
	}

	public SavingTransaction() {
		super();
	}

	public SavingTransaction(double funds, double beforeTxBalance,
			int createdBy, int verifiedBy,
			SavingTransactionType savingTransactionType,
			long customerAccountNumber) {
		super(funds, beforeTxBalance, createdBy, verifiedBy,
				customerAccountNumber);
		this.savingTransactionType = savingTransactionType;
	}
	
	public SavingTransaction(double funds, 
			Timestamp beginTime, Timestamp endTime, double beforeTxBalance,
			int createdBy, int verifiedBy, SavingTransactionType savingTransactionType,
			long customerAccountNumber) {
		super(funds,  beginTime, endTime, beforeTxBalance, createdBy,
				verifiedBy, customerAccountNumber);
		this.savingTransactionType = savingTransactionType;
	}

	public SavingTransaction(long transactionID, double funds,
			Timestamp createdDate, Timestamp beginTime, Timestamp endTime,
			double beforeTxBalance, int createdBy, int verifiedBy,
			TransactionState transactionState,
			SavingTransactionType savingTransactionType,
			long customerAccountNumber) {
		super(transactionID, funds, createdDate, beginTime, endTime,
				beforeTxBalance, createdBy, verifiedBy, transactionState,
				customerAccountNumber);
		this.savingTransactionType = savingTransactionType;

	}

}
